Spread Windows Forms 17
FarPoint.Excel Assembly / FarPoint.Excel Namespace / ExcelXMLHelpers Class / GetColorByCT_Color Method / GetColorByCT_Color(CT_Color,ArrayList,CT_RgbColor[],Color,Object) Method
Object of the CT_Color
theme colors, get list from themes.xml
List of Rgb colors those indexed in Excel file
when color is automatic color, this color will be set


In This Topic
    GetColorByCT_Color(CT_Color,ArrayList,CT_RgbColor[],Color,Object) Method
    In This Topic
    Gets the color by CT_Color type object.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function GetColorByCT_Color( _
       ByVal ctColor As CT_Color, _
       ByVal themeColors As ArrayList, _
       ByVal indexedRgbColors() As CT_RgbColor, _
       ByVal autoColor As Color, _
       ByVal product As Object _
    ) As Color
    'Usage
     
    
    Dim ctColor As CT_Color
    Dim themeColors As ArrayList
    Dim indexedRgbColors() As CT_RgbColor
    Dim autoColor As Color
    Dim product As Object
    Dim value As Color
     
    value = ExcelXMLHelpers.GetColorByCT_Color(ctColor, themeColors, indexedRgbColors, autoColor, product)
    public static Color GetColorByCT_Color( 
       CT_Color ctColor,
       ArrayList themeColors,
       CT_RgbColor[] indexedRgbColors,
       Color autoColor,
       object product
    )

    Parameters

    ctColor
    Object of the CT_Color
    themeColors
    theme colors, get list from themes.xml
    indexedRgbColors
    List of Rgb colors those indexed in Excel file
    autoColor
    when color is automatic color, this color will be set
    product

    Return Value

    Color
    See Also